Package com.cisco.pt.ipc.sim.impl
Class ModuleFactoryImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ModuleFactoryImpl
- All Implemented Interfaces:
IPCObject,ModuleFactory
Information provided by the PKI file:
\class ModuleFactory
\brief Factory for modules.
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionModuleFactoryImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionaddModuleModel(ModuleType type, String model) Information provided by the PKI file:getAvailableModuleAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:getAvailableModuleForTypeAt(ModuleType type, int index) Information provided by the PKI file:intInformation provided by the PKI file:getDescriptor(ModuleType type, String model) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
ModuleFactoryImpl
public ModuleFactoryImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getDescriptor
Information provided by the PKI file:
\brief Gets the module descriptor that matches the given types. \param moduleType ModuleType, the number of the module. Types: eLineCard = 0, eNetworkModule = 1, eInterfaceCard = 2, ePtRouterModule = 3, ePtSwitchModule = 4, ePtCloudModule = 5, ePtRepeaterModule = 6, ePtHostModule = 7, ePtModemModule = 8, ePtLaptopModule = 9, ePtTVModule = 10, eIpPhonePowerAdapter = 11, ePtTabletPCModule = 12, ePtPdaModule = 13, ePtWirelessEndDeviceModule = 14, ePtWiredEndDeviceModule = 15, eTrs35 = 16, eUsb = 17, eNonRemovableModule = 18, eASAModule = 19, eASAPowerAdapter = 20, ePtCellTowerModule = 21, ePtIoeModule = 22, ePtIoeNetworkModule = 23, ePtIoeAnalogModule = 24, ePtIoeDigitalModule = 25, ePtIoeCustomIOModule = 26, ePtIoePowerAdapter = 27, ePtIoeMcuComponentPowerAdapter = 28, ePtRouterPowerAdapter = 29, eSfpModule = 30, eAccessPointPowerAdaptor = 31, eNonRemovableInterfaceCard = 32, eCustomModuleType = 2000 \param model, model name. Something like "PT-ROUTER-NM-1CFE". \return ModuleDescriptor, the descriptor that matches the given types.- Specified by:
getDescriptorin interfaceModuleFactory- Parameters:
type- Takes in a parameter of typemodel- Takes in a parameter of model- Returns:
- ModuleDescriptor Returns a ModuleDescriptor
-
getAvailableModuleCount
public int getAvailableModuleCount()Information provided by the PKI file:
\brief Gets the number of module descriptors stored in the factory. \return int, the number of module descriptors stored in the factory.- Specified by:
getAvailableModuleCountin interfaceModuleFactory- Returns:
- int Returns a int
-
getAvailableModuleAt
Information provided by the PKI file:
\brief Gets the module descriptor at the given index. \param int, index to get the descriptor from. Range (0, getAvailableModuleCount()-1) \return ModuleDescriptor, the descriptor at the given index.- Specified by:
getAvailableModuleAtin interfaceModuleFactory- Parameters:
index- Takes in a parameter of index- Returns:
- ModuleDescriptor Returns a ModuleDescriptor
-
getAvailableModuleForTypeCount
Information provided by the PKI file:
\brief Gets the number of module descriptors stored in the factory of the given type. \param type, module type to check for. \return int, the number of module descriptors stored in the factory of the given type.- Specified by:
getAvailableModuleForTypeCountin interfaceModuleFactory- Parameters:
type- Takes in a parameter of type- Returns:
- int Returns a int
-
getAvailableModuleForTypeAt
Information provided by the PKI file:
\brief Gets the module descriptor stored for the given type and index. \param type, module type to check for. \param index, index in they type to get the descriptor for. \return ModuleDescriptor, the module descriptor stored for the given type and index.- Specified by:
getAvailableModuleForTypeAtin interfaceModuleFactory- Parameters:
type- Takes in a parameter of typeindex- Takes in a parameter of index- Returns:
- ModuleDescriptor Returns a ModuleDescriptor
-
addModuleModel
Information provided by the PKI file:
\brief Adds a module descriptor of the given types. \param type, module type to add. \param model, the string type of for the module. Something like "PT-ROUTER-NM-1CFE". \return ModuleDescriptor, the module descriptor added.- Specified by:
addModuleModelin interfaceModuleFactory- Parameters:
type- Takes in a parameter of typemodel- Takes in a parameter of model- Returns:
- ModuleDescriptor Returns a ModuleDescriptor
-